﻿@model SimpleTaskManager.Domain.Entities.ReportHeader

@{
    ViewBag.Title = "Approve Report";
}

<h2>Approve Report</h2>

<h3>Are you sure you want to approve this report?</h3>
<fieldset>
    <legend>Report</legend>

    <div class="display-label">Name</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">Created At</div>
    <div class="display-field">
        @Model.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")
    </div>

    <div class="display-label">Created By</div>
    <div class="display-field">
        @(Model.CreatedBy.FirstName + " " + Model.CreatedBy.LastName)
    </div>

</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Approve" /> |
        @Html.ActionLink("Back to List", "Reports", new { id = ViewBag.TaskId })
    </p>
}
